package com.kun.rental.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.kun.rental.entity.CarrentalBrand;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ikun
 * @since 2024-07-04
 */
@Mapper
public interface CarrentalBrandMapper extends BaseMapper<CarrentalBrand> {

    /**
     * 按照分页条件搜索租车品牌信息。
     * @param page
     * @param carrentalBrand
     * @return
     */
    Page<CarrentalBrand> searchByPage(@Param("page") Page<CarrentalBrand> page,
                                 @Param("carrentalBrand") CarrentalBrand carrentalBrand);
}
